<?php

namespace app\third\controller;

use think\facade\Db;

class Account extends Controller
{
    /**
     * 余额查询
     */
    public function queryAmount()
    {
        $amount = Db::name('agent')
            ->where('id', $this->agent['id'])
            ->value('balance');
        return success('查询成功', [
            'amount' => fen2yuan($amount),
        ]);
    }
}